package com.ds.dsm.aggregation.module;

import com.ds.dsm.aggregation.module.service.ModuleConfigService;
import com.ds.esd.custom.annotation.CustomAnnotation;
import com.ds.esd.custom.bean.CustomModuleBean;
import com.ds.esd.custom.form.annotation.FormAnnotation;
import com.ds.esd.custom.form.enums.CustomFormMenu;
import com.ds.esd.custom.toolbar.BottomBarMenu;
import com.ds.esd.tool.ui.enums.Dock;

@BottomBarMenu
@FormAnnotation(col = 1, customService = ModuleConfigService.class, bottombarMenu = {CustomFormMenu.Save,CustomFormMenu.ReSet})
public class ModuleWinBase {


    @CustomAnnotation(hidden = true, pid = true)
    String domainId;

    @CustomAnnotation(hidden = true, pid = true)
    String sourceClassName;
    @CustomAnnotation(caption = "是否弹出窗口")
    Boolean dio;

    @CustomAnnotation(caption = "页面缓存")
    Boolean cache;

    @CustomAnnotation(caption = "动态装载")
    Boolean dynLoad;

    @CustomAnnotation(caption = "平铺")
    Dock dock;

    @CustomAnnotation(caption = "窗口宽度")
    String width;
    @CustomAnnotation(caption = "窗口高度")
    String height;
    @CustomAnnotation(caption = "图标")
    String imageClass;


    public ModuleWinBase() {

    }

    public ModuleWinBase(CustomModuleBean dataBean) {
        this.domainId = dataBean.getDomainId();
        this.sourceClassName = dataBean.getSourceClassName();
        this.height = dataBean.getHeight();
        this.width = dataBean.getWidth();
        this.imageClass = dataBean.getImageClass();
        this.cache = dataBean.getCache();
        this.dock = dataBean.getDock();
        this.dynLoad = dataBean.getDynLoad();
    }

    public String getDomainId() {
        return domainId;
    }

    public void setDomainId(String domainId) {
        this.domainId = domainId;
    }

    public String getSourceClassName() {
        return sourceClassName;
    }

    public void setSourceClassName(String sourceClassName) {
        this.sourceClassName = sourceClassName;
    }


    public String getWidth() {
        return width;
    }

    public void setWidth(String width) {
        this.width = width;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getImageClass() {
        return imageClass;
    }

    public void setImageClass(String imageClass) {
        this.imageClass = imageClass;
    }

    public Dock getDock() {
        return dock;
    }

    public void setDock(Dock dock) {
        this.dock = dock;
    }

    public Boolean getDio() {
        return dio;
    }

    public void setDio(Boolean dio) {
        this.dio = dio;
    }

    public Boolean getCache() {
        return cache;
    }

    public void setCache(Boolean cache) {
        this.cache = cache;
    }

    public Boolean getDynLoad() {
        return dynLoad;
    }

    public void setDynLoad(Boolean dynLoad) {
        this.dynLoad = dynLoad;
    }
}
